for row in range(0, 9):
    for col in range(0, row + 1):
        print(str(row + 1) + ' * ' + str(col + 1) + ' = ' + str((row + 1) * (col + 1)), end="\t")
        if (col == row):
            print()
